<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
</head>

<body>
    <script src="./list.js"></script>

    <script>
        // 3.过滤出     type_two": "吊灯 / 水晶灯     的元素
        let newArr = []
        goodList.filter(function (val, i) {
            if (val.type_two !== "吊灯/水晶灯") {
                return newArr.push(val)
            }
        })

        console.log(newArr);



        newArr = goodList.reduce(function (pre, cur, curIndex) {
            if (cur.type_two !== "吊灯/水晶灯") {
                pre.push(cur)
            }
            return pre
        }, [])

        console.log(newArr);
    </script>
</body>

</html>